/*
 * @Description: 入口文件
 * @Version: 1.0
 * @Author: wenbin
 * @Date: 2021-09-15 10:10:08
 * @LastEditors: wenbin
 * @LastEditTime: 2022-01-12 11:17:01
 * @FilePath: /vite-ts-vue3-test/src/main.ts
 * Copyright (C) 2021 wenbin. All rights reserved.
 */
import { createApp } from 'vue';
import App from './App.vue';
import router from './router';
import store from './store/index';
import middleware from './middleware/index';

const app = createApp(App);

app.config.globalProperties.$magusCloudApi = middleware.magusUI.exportApi;

// console.log(import.meta.env.VITE_APP_BASE_URL, 'VITE_APP_BASE_URL');
// console.log(process.env.NODE_ENV);
// console.log(middleware);

app
  .use(router)
  .use(middleware.magusUI)
  .use(middleware.ElementPlus, { size: 'small', zIndex: 3000 })
  .use(middleware.i18n)
  .use(store)
  .mount('#app');
